package com.dianshang.service.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.dianshang.dao.RoleDao;
import com.dianshang.pojo.system.Role;
import com.dianshang.service.system.RoleService;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

@Service
public class RoleServiceImpl implements RoleService {

    @Autowired
    private RoleDao roleDao;

    /**
     * 查询所有角色
     */
    public List<Role> findRole() {
        return roleDao.selectAll();
    }

}